package cc.mrbird.febs.book.mapper;

import cc.mrbird.febs.book.dto.HistoryDTO;
import cc.mrbird.febs.book.entity.Books;
import cc.mrbird.febs.book.vo.HistoryVO;
import cc.mrbird.febs.book.vo.RecommendVO;
import cc.mrbird.febs.book.vo.UserBookList;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.awt.print.Book;
import java.util.List;

/**
 * @author wbt
 */
public interface BooksMapper extends BaseMapper<Books> {

    List<Books> getList();


    Books selectBookInfo(String bookId);

    int updateScore(String score, String bookId);

    List<HistoryDTO> historyList(HistoryVO vo);

    int selectScore(String bookId);

    int selectSum(String bookId);

    List<HistoryDTO> getRecommendList(HistoryVO vo);

    List<HistoryDTO> getBookListByAuthor(RecommendVO vo);

    boolean updateBook(Books books);
}
